package com.sport.model.setting.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@TableName("sport_events_pre_enroll")
@AllArgsConstructor
public class SportEventsPreEnroll {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 比赛组
     */
    @TableField(value = "sport_events_grade")
    private String sportEventsGrade;

    /**
     * 比赛项目id
     */
    @TableField(value = "sport_events_games_id")
    private Long sportEventsGameId;

    /**
     * 男子是否参加比赛，0表示不参加，1表示参加
     */
    @TableField(value = "sport_events_male")
    private Integer sportEventsMale;

    /**
     * 女子是否参加比赛，0表示不参加，1表示参加
     */
    @TableField(value = "sport_events_female")
    private Integer sportEventsFemale;

    /**
     * 是否为全能项目，0表示不是，1表示是
     */
    @TableField(value = "sport_is_almighty")
    private Integer sportIsAlmighty;

    /**
     * 最大时间间隔
     */
    @TableField("sport_events_time")
    private Integer maxTimeInterval;

    /**
     * 最大人数限制
     */
    @TableField("sport_events_member")
    private Integer maxPersonLimit;

    /**
     * 绑定运动会，数据在“sport_pre_info”
     */
    @TableField(value = "sport_binding_school")
    private Long sportBindingSchool;

    /**
     * 租户id
     */
    @TableField(value = "school_tenement_id")
    private String schoolTenementId;

    public SportEventsPreEnroll(String sportEventsGrade, Long sportEventsGameId, Integer sportEventsMale, Integer sportEventsFemale, Integer sportIsAlmighty, Integer maxTimeInterval, Integer maxPersonLimit, Long sportBindingSchool, String schoolTenementId) {
        this.sportEventsGrade = sportEventsGrade;
        this.sportEventsGameId = sportEventsGameId;
        this.sportEventsMale = sportEventsMale;
        this.sportEventsFemale = sportEventsFemale;
        this.sportIsAlmighty = sportIsAlmighty;
        this.maxTimeInterval = maxTimeInterval;
        this.maxPersonLimit = maxPersonLimit;
        this.sportBindingSchool = sportBindingSchool;
        this.schoolTenementId = schoolTenementId;
    }
}
